﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PingPongMain
{
    public class Paddle : GameObject, IUserControlable
    {
        public Paddle(Coords coords) : base(coords,'|')
        {
            this.Length = 6;
            this.Width = 2;
        }
        public Paddle()
        {
        }


        public void MoveUp()
        {
            if (this.GameObjCoords.Row > 0)
            {
                this.GameObjCoords.Row--;
            }
        }

        public void MoveDown()
        {
            if (this.GameObjCoords.Row + this.Length < PrepareField.WorldRows - 2)
            {
                this.GameObjCoords.Row++;
            }
        }
    }
}
